# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=py3-humanize
_pkgname=humanize
pkgver=2.6.0
pkgrel=0
pkgdesc="Python humanize functions"
options="!check" # No tests are actually run
url="https://pypi.python.org/pypi/humanize"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools py3-setuptools_scm"
checkdepends="py3-mock py3-freezegun py3-pytest"
source="$_pkgname-$pkgver.tar.gz::https://github.com/jmoiron/humanize/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces=py-humanize # Backwards compatibility
provides=py-humanize=$pkgver-r$pkgrel # Backwards compatibility

build() {
	git init
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="bf36415b0f018477734863b11fdbb3d75084d2fd344ab5b837d496066734ed5f5bb8ba745b572d08169d280b20bed89fe2f2ad8daebb5c7c9865cf207eaa2651  humanize-2.6.0.tar.gz"
